package com.rxt.thermopro.ex

import android.content.ContentResolver
import android.content.Context
import android.provider.Settings


/**
 * 判断时间是否24小时制
 */
fun is24HourStyle(context: Context): Boolean {
    val cv: ContentResolver = context.contentResolver
    val strTimeFormat = Settings.System.getString(
        cv,
        Settings.System.TIME_12_24
    )
    return strTimeFormat == "24"
}